package com.gitee.giteego.springboot.mavendemo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @Author: zhangyy
 * @Email: zhang10092009@hotmail.com
 * @Date: 2020/12/22 17:20
 * @Version: v1.0
 * @Modified：
 * @Description:
 */
@RestController
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("")
    public String index() {
        Date date = new Date();
        return date.toString();
    }
}
